var status = -1;

function start(mode, type, selection) {
	if(mode == -1){
		qm.dispose();
	}else{
		if(mode == 1){
			status++;
		}else if(mode ==0){
			qm.dispose();
		}else{
          	status--;
       	}
		if(status ==0){
			qm.forceStartQuest();
		}else{
			qm.dispose();
		}
	}
}

function end(mode, type, selection) {
	if(mode == -1){
		qm.dispose();
	}else{
		if(mode == 1){
			status++;
		}else if(mode ==0){
			qm.dispose();
		}else{
          	status--;
      	 	}
		qm.dispose();
	}
}